<!DOCTYPE html>
<html>
<head>
    <title>我关注的</title>
		<#include "/header.html">
</head>
<body>

<div id="webpage" v-cloak>
    <div v-show="showList">
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>
</div>
<script>
    var strUrl=["dataview/viewuserdoinglist/list", "dataview/viewuserdoingforobjectlist/list"];
    var selectType="${RequestParameters['selectType']}";//0 查询关注我的人，1查询我关注的人
    var uidLabel=["uid","关注我的人Uid"];
    var objectuidLabel=["被关注的人Uid","uid"];
    var requestParameters = {
        uid: "${RequestParameters['uid']}",
        type: "${RequestParameters['type']}",
        object_name:"${RequestParameters['object_name']}"
    };

    if(parseInt(selectType) > 0){
        requestParameters['object_uid'] = "${RequestParameters['uid']}";
        delete requestParameters['uid']
    }else{
        requestParameters['uid'] = "${RequestParameters['uid']}";
        delete requestParameters['object_uid']
    }
    console.log(JSON.stringify(requestParameters,null,2));

    var vm = new Vue({
        el:'#webpage',
        data: {
            showList: true,
            title: null,
            viewuserpostslist: {},
        },
        methods: {
            query: function () {
                vm.reload();
            },
            reload: function (event) {
                vm.showList = true;
                var page = $("#jqGrid").jqGrid('getGridParam','page');
                $("#jqGrid").jqGrid('setGridParam',{
                    page:page
                }).trigger("reloadGrid");
            }
        }
    });

</script>
<script src="${request.contextPath}/statics/js/modules/user/myattent.js?_${.now?long}"></script>
</body>
</html>